﻿using System;
using System.Net;
using System.Xml.Linq;

namespace ArmoryBrowser.Entities
{
    public class Agility : BaseStat
    {
        #region Fields
        private string _armorField;
        private string _attackField;
        private string _critHitPercentField;
        #endregion
        #region Properties
        public string Armor
        {
            get
            {
                return this._armorField;
            }
            set
            {
                this._armorField = value;
            }
        }

        public string Attack
        {
            get
            {
                return this._attackField;
            }
            set
            {
                this._attackField = value;
            }
        }

        public string CritHitPercent
        {
            get
            {
                return this._critHitPercentField;
            }
            set
            {
                this._critHitPercentField = value;
            }
        }
        #endregion
        #region Constructor
        public Agility(XElement element) : base(element)
        {
            Armor = element.GetAttributeValue("armor");
            Attack = element.GetAttributeValue("attack");
            CritHitPercent = element.GetAttributeValue("critHitPercent");
        }
        #endregion
    }
}
